const routes: any[] = [
  {
    path: '/',
    component: 'home',
    name: '主页',
    icon: 'TeamOutlined',
  },
  {
    path: '/blogsmanage',
    // component: './BlogsManage/TagManage',
    name: '博客管理',
    routes: [
      {
        path: '/blogsmanage/blogsaddorupdate',
        component: './BlogsManage/BlogsAddOrUpdate',
        name: '写博客',
      },
      {
        path: '/blogsmanage/index',
        component: 'BlogsManage',
        name: '博客列表',
      },
      {
        path: '/blogsmanage/tagmanage',
        component: './BlogsManage/TagManage',
        name: '标签列表',
      },
    ],
  },
  {
    path: '/usersmanage',
    component: 'UsersManage',
    access: 'isAdmin',
    // wrappers: ['@/wrappers/auth'],
    name: '用户管理',
  },
  {
    path: '/setting',
    component: 'setting',
    name: '基础设置',
  },
  {
    path: '/login',
    component: 'login',
    name: '登录',
    layout: false,
  },
  { path: '/*', component: '@/pages/404' },
];

export default routes;
